<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>perform (Spec::Story::GivenScenario)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File ..\..\vendor\plugins\rspec_on_rails/lib/spec/rails/story_adapter.rb, line 51</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">perform</span>(<span class="ruby-identifier">instance</span>, <span class="ruby-identifier">name</span> = <span class="ruby-keyword kw">nil</span>)
    <span class="ruby-identifier">scenario</span> = <span class="ruby-constant">Spec</span><span class="ruby-operator">::</span><span class="ruby-constant">Story</span><span class="ruby-operator">::</span><span class="ruby-constant">Runner</span><span class="ruby-operator">::</span><span class="ruby-constant">StoryRunner</span>.<span class="ruby-identifier">scenario_from_current_story</span> <span class="ruby-ivar">@name</span>
    <span class="ruby-identifier">runner</span> = <span class="ruby-constant">Spec</span><span class="ruby-operator">::</span><span class="ruby-constant">Story</span><span class="ruby-operator">::</span><span class="ruby-constant">Runner</span><span class="ruby-operator">::</span><span class="ruby-constant">ScenarioRunner</span>.<span class="ruby-identifier">new</span>
    <span class="ruby-identifier">runner</span>.<span class="ruby-identifier">instance_variable_set</span>(<span class="ruby-identifier">:@listeners</span>,[])
    <span class="ruby-identifier">runner</span>.<span class="ruby-identifier">run</span>(<span class="ruby-identifier">scenario</span>, <span class="ruby-identifier">instance</span>)
  <span class="ruby-keyword kw">end</span></pre>
</body>
</html>